package com.jinsp.skinlibrary;

import android.app.Application;
import android.os.StrictMode;

import com.jinsp.skinlib.FontUtils;
import com.jinsp.skinlib.SkinLibrary;

/**
 * Created by luoshuai on 12/20/21
 */
public class MyApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        SkinLibrary.init(this);
//        FontUtils.changeDefaultFont(FontUtils.DEFAULT_FONT_SERIF, FontUtils.getFontFileName(getAssets(),
//                "kai_ti.ttf"));
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                .detectAll()
                .penaltyLog()
                .build()
        );
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                .detectAll()
                .penaltyLog()
                .build()
        );
    }
}
